package com.company.oa.hr.service.training;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.company.oa.hr.dto.training.PlanDTO;
import com.company.oa.hr.entity.training.Plan;

public interface PlanService {

   public IPage<Plan> getPlanPage(int page, int size, Plan plan);

   Plan getById(Long id);

   boolean createPlan(PlanDTO planDTO, Long creatorId);

   boolean updatePlan(PlanDTO planDTO);

   boolean deletePlan(Long id);

   boolean publishPlan(Long id);

   boolean cancelPlan(Long id);
}